
package com.probiz.estore.customer.service.impl;

import com.probiz.estore.common.model.customer.ShopPointHistory;
import com.probiz.estore.core.service.impl.GenericManagerImpl;
import com.probiz.estore.customer.dao.ShopPointHistoryDao;
import com.probiz.estore.customer.service.ShopPointHistoryManager;

/**
 * ShopPointHistory Business Delegate (Proxy) implementation to handle
 * communication between web and persistence layer. Implementation of
 * ShopPointHistoryManager interface. Developer introduced interfaces should be
 * declared here. Won't get overwritten.
 */
public class ShopPointHistoryManagerImpl extends GenericManagerImpl<ShopPointHistory> implements ShopPointHistoryManager {

	private ShopPointHistoryDao shopPointHistoryDao = null;

	public void setShopPointHistoryDao(ShopPointHistoryDao shopPointHistoryDao) {
		this.shopPointHistoryDao = shopPointHistoryDao;
		
	}

	@Override
	protected void initManager() {
		this.dao = shopPointHistoryDao;
	}

	@Override
	protected void preDelete(ShopPointHistory entity) {
		
	}

	@Override
	protected void preSave(ShopPointHistory entity) {
		
	}
	/*
	 * (non-Javadoc)
	 * @see com.probiz.estore.customer.service.ShopPointHistoryManager#getByCustomerIdAndTypeAndEntityId(java.lang.Integer, java.lang.Short, java.lang.Integer)
	 */
	public ShopPointHistory getByCustomerIdAndTypeAndEntityId(Integer customerId,Short type,Integer entityId){
		return shopPointHistoryDao.getByCustomerIdAndTypeAndEntityId(customerId,type, entityId);
	}
}
